var gqlwx = require('../graphql/wxgql');
var GraphQL = gqlwx.GraphQL;

var gql = GraphQL({
  //设置全局 url
  url: 'https://users.authing.cn/graphql', // url 必填

  //设置全居动态 header
  header: function () {
    return {
      // something....
      'X-Test-Header': 'test header content'
    }
  },

  //设置全居错误拦截
  errorHandler: function (res) {
    //do something
  }
}, true
);

module.exports = gql;